package org.jks.sms;

import java.util.ResourceBundle;

public class SmsConfig {
	public String comPort = "COM4";
	public int baudRate = 9600;

	public SmsConfig() {
		ResourceBundle rb = ResourceBundle.getBundle("config");
		try {
			this.comPort = rb.getString("sms.port");
			this.baudRate = Integer.parseInt(rb.getString("sms.rate"));
		} catch (Exception e) {
			this.comPort = "COM4";
			this.baudRate = 9600;
		}
	}

	public String getComPort() {
		return comPort;
	}

	public void setComPort(String comPort) {
		this.comPort = comPort;
	}

	public int getBaudRate() {
		return baudRate;
	}

	public void setBaudRate(int baudRate) {
		this.baudRate = baudRate;
	}

}
